import akshare as ak
import sqlite3

# df = ak.stock_bj_a_spot_em()

# with sqlite3.connect('example.db') as conn:
#     df.to_sql("stock_bj_a_spot_em",conn,if_exists='replace',index=False)


df = ak.stock_lhb_detail_daily_sina('20250612')
print(df)
# with sqlite3.connect('example.db') as conn:
#     df.to_sql('stock_lhb_detail_daily_sina',conn,if_exists='replace',index=False)



# df = ak.stock_zh_a_spot_em()
# print(df)
# with sqlite3.connect('example.db') as conn:
#     df.to_sql('stock_zh_a_spot_em',conn,if_exists='replace',index=False)
